<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>01-thymeleaf分支渲染</title>
</head>
<body>


<span th:switch="${role}">

    <span th:case="super">超级管理员</span>
    <span th:case="admin">管理员</span>
    <span th:case="user">用户</span>

</span>



</body>
</html>